import { Redirect, Route } from 'react-router-dom';

const PrivateRoute = (props) => {
    let {component: Comp, ...rest} = props;

    return (
        <Route
            {...rest}
            render={(props) => {
                return <Comp {...props} />;
            }}
        />
    );
}

export default PrivateRoute;
